<div>
	<?php
$sql = "SELECT * FROM NhanVien nv
		JOIN VaiTro vt ON vt.MaVT=nv.MaVT
		WHERE Yahoo IS NOT NULL
		ORDER BY nv.MaVT";
$rows = mysql_query($sql);
while($row = mysql_fetch_array($rows))
{
	$Yahoo = $row['Yahoo'];
	$HoTen = $row['HoTen'];
	$TenVT = $row['TenVT'];
	echo'
	<p>
		<a href="ymsgr:sendIM?'.$Yahoo.'">
		    <img width="100%" height="25" alt="Not Connected"
		        src="http://opi.yahoo.com/online?u='.$Yahoo.'&amp;m=g&amp;t=2" />
		</a>
		<div align="right">'.$HoTen.'<br>('.$TenVT.')</div>
	</p>
	';///echo
}
?>
</div>